﻿using System;
using System.Collections.Generic;

namespace DFGK_WMS.Model.Models
{
    /// <summary>
    /// 货品与包装关系表，容器与容器的关系，容器与货品的关系，货品与货品的关系等记录表
    /// </summary>
    [SqlSugar.SugarTable(TableName = "TPackageDetails")]
    public partial class TPackageDetail
    {
        /// <summary>
        /// 明细Id
        /// </summary>
        [SqlSugar.SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }
        /// <summary>
        /// 垛存储Id
        /// </summary>
        public int? StackingStorageId { get; set; }
        /// <summary>
        /// 状态：0-失效；1-生效
        /// </summary>
        public int? Status { get; set; }
        /// <summary>
        /// 关联单详情Id
        /// </summary>
        public int? RelatedOrderDetailId { get; set; }
        /// <summary>
        /// 物料Id
        /// </summary>
        public int? MaterialId { get; set; }
        /// <summary>
        /// 物料号
        /// </summary>
        public string MaterialCode { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// 包装类型：1-容器；2-货品
        /// </summary>
        public int? PackageClass { get; set; }
        /// <summary>
        /// 物料关键字Id
        /// </summary>
        public int? MaterialKeyId { get; set; }
        public string BatchNo { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public decimal? Qty { get; set; }
        /// <summary>
        /// 物料基本单位Id
        /// </summary>
        public int? UnitId { get; set; }
        /// <summary>
        /// 物料基本单位
        /// </summary>
        public string UnitName { get; set; }
        /// <summary>
        /// 收货最小单位与最小发货单位的转换因子：（收货除以发货单位）。计算公式为：通过物料的计量单位表中与基本单位转换
        /// </summary>
        public int? ConvertFigre { get; set; }
        /// <summary>
        /// 物料条码：可以是容器条码或货品条码
        /// </summary>
        public string Barcode { get; set; }
        /// <summary>
        /// 该物料所在垛的X坐标：如果为最底层托盘则0
        /// </summary>
        public int? PositionX { get; set; }
        /// <summary>
        /// 该物料所在垛的Y坐标：如果为最底层托盘则0
        /// </summary>
        public int? PositionY { get; set; }
        /// <summary>
        /// 该物料所在垛的Z坐标：如果为最底层托盘则0
        /// </summary>
        public int? PositionZ { get; set; }
        /// <summary>
        /// 第几层包装：最外层为1
        /// </summary>
        public int? LayerIndex { get; set; }
        /// <summary>
        /// 父包装Id
        /// </summary>
        public int? ParentId { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateDate { get; set; }
        /// <summary>
        /// 包装条码
        /// </summary>
        public string PackageCode { get; set; }
        public bool? IsStocktake { get; set; }
        public bool HasSkuDetail { get; set; }
        public decimal? SkuNum { get; set; }
        public string BarcodeRange { get; set; }
        public int CreateUserId { get; set; }
        public string CreateUserName { get; set; }
    }
}
